﻿<%namespace YouHP.Model%>
<%namespace YouHP.BLL%>
<%namespace YouHP.Utility%>
<%template _header%>
<style>
.log_reply_list
{
	overflow:hidden;
}
.log_reply_list span
{
	color:#949494
}
.log_reply_list a:link, .log_reply_list a:visited
{
	color:Green!important;
	text-decoration:underline;
}
.log_reply_list .reply_box
{
	clear:both;
	padding:5px;
	border-bottom:1px solid #D8DFEA;
	overflow:hidden;
	zoom:1;
	margin-bottom:10px;
}
.reply_box .avatar
{
	float:left;
	margin-right:10px;
}
.reply_box .reply_content
{
	float:left;
}



</style>

<div class="layout-cols2">
<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
			<div class="panneltabs">
			  <%template _logmenu%>
	
			</div>	
          <div class="pannelbody">


	<%if IsPost%>
		<%template _msgbox%>
	<%else%>

        <div class="log_reply_list">

            <%csharp%>
            foreach(LogCommentInfo item in LogCommentReplyDataList)
            {
              LogTopicInfo LogData = LogTopicBLL.Instance.GetLogTopicInfo(item.LogTopicId);
            <%/csharp%>
           
            <div class="reply_box">
             <%csharp%>TempUrl="/Profile/Index.aspx?uid="+item.PostUserId;<%/csharp%>
            <div class="avatar"><img alt="头像" src="{UserBLL.Instance.GetUserInfo(item.PostUserId).Avatar}" width="45px" height="45px" /></div>
            <div class="reply_content">
            <div>
            <a href="{this.GetUrl(TempUrl)}">{item.PostUserName}</a>&nbsp;在日志&nbsp;
            <%csharp%> TempUrl="/User/Log.aspx?lid="+LogData.Id;<%/csharp%>
            <a href="{this.GetUrl(TempUrl)}">{LogData.Title}</a>&nbsp;评论中回复我道：
             <%csharp%>TempUrl = item.PostTime.ToString("yyyy-MM-dd hh:mm");<%/csharp%>
            <span>{TempUrl}</span>
             &nbsp;
          
            <a href="javascript:$('actionType').value=0;$('submit_data').submit();">查看详情</a>
             &nbsp;
            <a href="javascript:$('actionType').value=1;$('submit_data').submit();">忽略</a>
            </div>
            <div>{item.Body}</div>
            </div>
            </div>
            
            <form action="" method="post"  id="submit_data">
               <input  type="hidden" value="{item.ParentId}" name="logCommentId" />
               <input  type="hidden" value="{item.Id}" name="logCommentReplyId" />
               <input type="hidden" value="-1" name="actionType" id="actionType" />
            </form>

           <%csharp%>
            }
           <%/csharp%>
             
         </div>
         
         
          <div class="pages">{PagingString}</div>
	<%/if%>
	</div>
</div>
</div>
</div>
</div>

<%template _footer%>